package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.base.DataBindBaseViewHolder
import com.gexiaobao.pigeon.app.model.bean.ReminderListBean
import com.gexiaobao.pigeon.databinding.ItemReminderDaysBinding

/**
 * @Author      : hxw
 * @Date        : 2024/9/12 9:24
 * @Describe    :
 */
class AdapterReminder : BaseQuickAdapter<ReminderListBean, DataBindBaseViewHolder>(R.layout.item_reminder_days) {
    override fun convert(holder: DataBindBaseViewHolder, item: ReminderListBean) {
        val binding = DataBindBaseViewHolder.getBinding(holder) as ItemReminderDaysBinding
        binding.data = item
        binding.executePendingBindings()//防止列表抖动
    }
}